<style>
body {
	text-align:center;
	margin:0px;
}

#menuset_content {
	position: absolute;
	z-index: auto;
	height: auto;
	width: 1000px;
	left:0px;
	top:80px;


}
#menuset_menu {
	width:200px;
	padding-left:20px;
	height:auto;
	text-align:left;


	
}
#menuset_top {
	width:700px;
	height:auto;
	margin-top:10px;
	padding-left:150px;
}

#menuset_content #menuset_top table {
	font-family: "ＭＳ Ｐゴシック", "ＭＳ ゴシック", "ＭＳ Ｐ明朝", "ＭＳ 明朝", "MS UI Gothic";
	font-size: 14px;
	text-align: center;
}
</style>
	<!--{include /service/service_head}-->
	<div id="menuset_content">
	<div id="menuset_menu">
		<ul >
			${servicemanage_backend($oauthMap)}
		</ul>
	</div>
	
	<div id="menuset_top">
		<form action="/service/serviceManage.php" id="indexform" method="get">
		<font size="-1">店舗：</font>
<select name="shop_id" class="f-city">
			<option value="0">選択してください</option>
			${Utility::Option(Utility::OptionArray($shopList, 'id', 'shop_name'), $defaultShopId)}
		</select>
		</form>
		<!--{if $oauthMap[44] != null}-->
			<p><a href="/service/serviceManageEdit.php">新規登録</a></p>
		<!--{/if}-->
		<table border="1" cellpadding="3" cellspacing="0" width="700">
		<tr>
			<td><span class="table">
			  番号
			</span></td>
			<td><span class="table">
			  サービス名
			</span></td>
			<td><span class="table">
			  サービス時間
			</span></td>
			<td><span class="table">
			  サービス金額
			</span></td>
			<td><span class="table">
			  サービス整理時間
			</span></td>
			<td><span class="table">
			  所属店舗
			</span></td>
			<td></td>
		</tr>
		<!--{loop $serviceList $index $one}-->
		<tr>
			<td>
				<span class="table"><a href="/service/serviceManageEdit.php?id={$one['id']}">
				{$one['id']}
				</a>
		    </span></td>
			<td>
				<span class="table"><font size="2">{$one['service_name']}</font>
		    </span></td>
			<td>
				<span class="table"><font size="2">{$one['service_duration']}分</font>
		    </span></td>
			<td>
				<span class="table"><font size="2">${number_format($one['service_price'])}円</font>
		    </span></td>
			<td>
				<span class="table"><font size="2">{$one['reset_device_time']}分</font>
		    </span></td>
			<td><span class="table"><font size="2">
				<!--{if $one['shop_id']==0}-->
				所属店舗なし
				<!--{elseif $one['shop_id']==1}-->
				本店
				<!--{else}-->
				支店
				<!--{/if}--></font>
			</span></td>
			<td>
			<!--{if $oauthMap[45] != null}-->
			<a href="/service/serviceManage.php?id={$one['id']}&action=del"
   			onclick="return confirm('本当にサービスを削除しますか？\nサービス名：{$one['service_name']}')"
			style="text-decoration: none;">削除</a>
			<!--{/if}-->
			</td>
		</tr>
		<!--{/loop}-->
		</table>
	</div>
	</div>

</body>
</html>
<script type="text/javascript"> 
	jQuery(function(){
		$("select[name='shop_id']").bind("change", function(){
			
			$("#indexform").submit();
		});
	});
</script> 
</html> 